﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace nadModel.AutoFeed
{
    public partial class AutoFeedEntityProcess : AbstractEntityProcess
    {
        public string conection_addr = @"http://nad.nadfinlo.com.cn/nadTest/";
        public AutoFeedEntity[] FindByParameter(AutoFeedParameter p)
        {
            string sql = " select * from " + AutoFeedEntity.DB_TABLES;
            AutoFeedEntity[] ents = (AutoFeedEntity[])FindBySql(sql, conection_addr);
            return ents;
        }

        public void test()
        {
            string sql = "@1 is null or k=@1";
            AutoFeedEntity e = new AutoFeedEntity();
            FindCountByCustomizedWhereClause(e, sql, new object[] { "" });
        }

        public void UpdateSendStatusById(string id)
        {
            string sql = "update ud110 set checkbox19=1 where key1='" + id + "' and company='NSZ' ";

            ExecuteNonQuery(sql, conection_addr);
        }

    }
}
